#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "dialog_comm_setting.h"
#include <QMessageBox>
#include "serial_connect.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:

    void on_actionPort_setting_triggered();

    void on_actionController_setting_triggered();

    void on_pushButton_connect_clicked();


    void on_pushButton_initial_clicked();

private:
    Ui::MainWindow *ui;
    Dialog_Comm_setting *m_comm_setting_dg;
    Serial_connect *m_serial_connect;

public slots:
    void dealError(QString errorinfo);

};
#endif // MAINWINDOW_H
